package com.sq.partner.manager.service.impl;

import java.sql.SQLException;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sq.partner.manager.dao.TradSmsTemplateDao;
import com.sq.partner.manager.mybatis.model.TradSmsTemplate;
import com.sq.partner.manager.service.TradSmsTemplateService;

@Service
public class TradSmsTemplateServiceImpl implements TradSmsTemplateService {
	@Resource
	private TradSmsTemplateDao smsDao;

	@Override
	public List<TradSmsTemplate> queryTrade(String smsTtemplateType) throws Exception {
		
		return smsDao.queryTrade(smsTtemplateType);
	}

	@Override
	public TradSmsTemplate queryTradeByCode(String smsTtemplateCode) throws Exception {
		
		return smsDao.queryTradeByCode(smsTtemplateCode);
	}

}
